package basicprocess.authentication.tablename;

import java.sql.ResultSet;
import java.util.Vector;

public class Transaction_details implements Authentication
{
	basicprocess.authentication.Condition conditionobject;
	public void getResult() 
	{
		try 
		{
			String id =conditionobject.authentication.pool.getDetailHashtabel().get("id").toString();
			String query = "select * from transaction where id ='"+id+"'";
			Vector<Object> field = conditionobject.database.getSelect(query, 'x'); 
			ResultSet rs= conditionobject.database.getSelect(query);
			while(rs.next())
			{
				for(int i=0;i<field.size();i++)
				{
					conditionobject.Detailhashtable.put(field.get(i), rs.getString(field.get(i).toString()));
				}
			}
		}
		catch (Exception e) 
		{
			e.printStackTrace();
		}
	}

	public void setObject(Object object) 
	{
		conditionobject = (basicprocess.authentication.Condition) object;
	}

}
